package main

import (
	"fmt"
	"os"
)

// 从命令行获取 输入参数，os.Args[]string
func main() {
	fmt.Println("len is: ", len(os.Args))
	for index, val := range os.Args {
		fmt.Println(index, " is ", val)
	}
	// go run test1.go 1 hello
	// len is:  3
	// 0  is  /tmp/go-build1135999384/b001/exe/test1
	// 1  is  1
	// 2  is  hello
}
